LearningStore.CreateJob Method

Create a new instance of the LearningStoreJob class.

Parent Type: LearningStore

Namespace: Microsoft.LearningComponents.Storage

Assembly: Microsoft.LearningComponents.Storage.dll

Syntax
C#

public LearningStoreJob CreateJob ()

Return Value

A new LearningStoreJob

Exceptions
Exception type Condition
InvalidOperationException

The store was created by a different version of this product, or the schema information stored inside the database is invalid.

SqlException

The database could not be opened or other SQL error.

Example

The following code opens a store and creates a new job:

C#
LearningStore store = new LearningStore("Server=Learning;Database=Mls;Integrated Security=true", "Bob");
LearningStoreJob job = store.CreateJob();